#ifndef DATETIMETASK_H
#define DATETIMETASK_H

#include <QObject>

class DateTimeTask : public QObject {
    Q_OBJECT

private:
    int year;
    int month;
    int date;
    int hour;
    int minute;
    int period;
    int speedA;
    int speedB;

public:
    
    explicit DateTimeTask(int year, int month, int date, int hour, int minute, int period, int speedA, int speedB, QObject *parent = nullptr);
    explicit DateTimeTask(QObject* parent = nullptr);
    // Getter
    int getYear() const {
        return year;
    }

    int getMonth() const {
        return month;
    }

    int getDate() const {
        return date;
    }

    int getHour() const {
        return hour;
    }

    int getMinute() const {
        return minute;
    }


    int getPeriod() const {
        return period;
    }

    int getSpeedA() const {
        return speedA;
    }

    int getSpeedB() const {
        return speedB;
    }

    void setYear(int myear);

    void setMonth(int month);

    void setDate(int mdate);

    void setHour(int mhour);

    void setMinute(int mminute);

    void setPeriod(int mperiod);

    void setSpeedA(int speeda);

    void setSpeedB(int speedb);

    QByteArray getByteArray();
};
#endif // DATETIMETASK_H
